]> dgit.raspbian.org Git - gnome-shell.git/commit
notificationDaemon: Work around JS interpreter bug
authorColin Walters <walters@verbum.org>
Thu, 25 Aug 2011 13:20:00 +0000 (09:20 -0400)
committerColin Walters <walters@verbum.org>
Thu, 25 Aug 2011 13:20:00 +0000 (09:20 -0400)
commitb76efe17d6049693374053d60bd7c358f6a0d83c
treecfd65a44136913361bee709aa4a08012adace53c
parentca2678446d87468ad8e62bec321ebe97abab0fb4
notificationDaemon: Work around JS interpreter bug

The "id" variable was being sporadically reset to null, and as far as
Florian and I could determine, this is actually a Spidermonkey bug.

The issue has something to do with:

1) use of "let" for the variable
2) Nesting a dynamic closure inside of a for() loop

Work around it here for now - I tried to create a minimized test case
to hand to the Spidermonkey developers, but failed.  A big part of
the problem is it's only sporadically reproducible.
js/ui/notificationDaemon.js